Removes a semaphore.
OSStatus MPDeleteSemaphore (MPSemaphoreID semaphore);
semaphore
A value of type MPSemaphoreID
that specifies the ID of the semaphore you want to remove.
function result
A result code. See
Result Codes
for a list of possible values.
DISCUSSION
Calling this function unblocks all tasks waiting on the semaphore and the tasks' respective MPWaitOnSemaphore
calls will return with the result code kMPDeletedErr
.